﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package validation {

    public class GenericValidationCondition implements IGenericValidationCondition {

        protected var m_callback:Function;
        protected var m_arguments:Array;

        public function GenericValidationCondition(_arg1:String, _arg2:String, ... _args){
            this.m_callback = Global.validationManager.getValidationFunction(_arg1, _arg2);
            this.m_arguments = _args;
        }
        public function evaluate(_arg1=null):Boolean{
            var _local2:Boolean;
            if (this.m_callback != null){
                _local2 = this.m_callback.apply(_arg1, this.m_arguments);
            };
            return (_local2);
        }

    }
}//package validation 
